<%@ page import="com.fhd.constant.Constants" %><%--
  Created by IntelliJ IDEA.
  User: 44252
  Date: 2025/3/26
  Time: 10:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>signUpClient</title>
</head>
<body>
    <h2>这里是客户注册页面</h2>
    <h3>请输入：</h3>
    <form method="post" action="signUp.do">
        <%
            // 注册失败信息
            String signUpMessage = (String)request.getSession().getAttribute(Constants.SIGN_UP_MESSAGE);
            if (signUpMessage != null) {
                out.print("<h4 style=\"color: red\">" + signUpMessage + "</h4>");
                request.getSession().removeAttribute(Constants.SIGN_UP_MESSAGE);
            }
        %>
        <%--  进到SignUpServlet中的signUpClient方法  --%>
        <input type="hidden" name="method" value="signUpClient">
        <div>
            <label for="userCode">账号：</label>
            <input type="text" name="userCode" id="userCode" required maxlength="20">
        </div>
        <br>
        <div>
            <label for="userPassword">密码：</label>
            <input type="password" name="userPassword" id="userPassword" required maxlength="20">
        </div>
        <br>
        <div>
            <label for="userName">昵称：</label>
            <input type="text" name="userName" id="userName" required maxlength="20">
        </div>
        <br>
        <div>
            <input type="submit">
        </div>
    </form>
    <br>
    <a href="login.jsp">返回登录</a>

</body>
</html>
